package com.example.blueconn.utils;

/**
 * Created by zhudongao
 * Desc
 * Date 2020/7/26
 */

public class ClickUtils {
    private static long lastClickTime;

    /**
     * 防快速点击
     */
    public static boolean isFastClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime < 300) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
